#include <iostream>
using namespace std;
static void show(){
	static int count = 0;
	cout << count++;
}
int main(){
	for (int i = 0; i < 5; i++)
	{
		show();
	}
	system("pause");
	return 0;
}